projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28cb6f4
)
gtkstyleproperty: fix small memory leak
author
Felix Riemann
<friemann@gnome.org>
Sat, 23 Jul 2011 13:50:05 +0000
(15:50 +0200)
committer
Felix Riemann
<friemann@gnome.org>
Sat, 23 Jul 2011 19:40:59 +0000
(21:40 +0200)
The released value is a string array and thus g_free is not sufficient.
https://bugzilla.gnome.org/show_bug.cgi?id=655173
gtk/gtkstyleproperty.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstyleproperty.c
b/gtk/gtkstyleproperty.c
index c44d0e72806a09c4ba1e162b2bdb453327ca1ab4..6ffb46c446a7abcd2836a6d64c7255b63f37b77e 100644
(file)
--- a/
gtk/gtkstyleproperty.c
+++ b/
gtk/gtkstyleproperty.c
@@
-2008,7
+2008,7
@@
pack_font_description (GValue *value,
pango_font_description_set_variant (description, variant);
pango_font_description_set_weight (description, weight);
- g_
free
(families);
+ g_
strfreev
(families);
g_value_take_boxed (value, description);
}